package com.qfmy.model.vo.listenBook;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.web.app.vo.listenBook
 * @date 2025/11/01
 * @description 评论
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AudioCommentVo {

    @Schema(description = "评论ID（主键）")
    private Long commentId;

    @Schema(description = "关联的音频资源ID（对应audio_resource表的audio_id）")
    private Long audioId;

    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "评分（1-5星，0表示未评分）")
    private Integer rating;

    @Schema(description = "点赞数")
    private Integer likeCount;

    @Schema(description = "点踩数")
    private Integer dislikeCount;

    @Schema(description = "评论时间（默认当前时间）")
    private Date commentTime;

    @Schema(description = "用户名称")
    private String username;

    @Schema(description = "用户头像")
    private String avatar;

}
